int main() {
  int x, y;
  x = 0;
  y = 10;
  while (y > 0) {
    x *= 10;
    x += y % 2;
    y /= 2;
  }

  return x;
}
